{extend name="public:layout" /}
{block name="title"}车辆统计页面{/block}
{block name="head"}{/block}
{block name="body"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="ibox">
        <div class="ibox-title">
            <ol class="breadcrumb">
                <li><i class="fa fa-hand-o-right"></i> 订单列表</li>
            </ol>
        </div>
        <div class="ibox-content">
        	<div class="toolbar">
                <form class="form-inline" method="post">
                    <div class="form-group">
                        <input class="form-control" name="rangdate" id="rangdate" type="text" value="{$rangdate}" placeholder="日期范围" style="width: 200px;">
                    </div>
                    <button type="submit" class="btn btn-info">
                        <i class="fa fa-search"></i> 搜索
                    </button>
                    <!--<a href="/system/logic.order/paymoney.html" class="btn btn-primary">欠款列表</a>-->
                </form>
            </div>
            <table class="table table-bordered">
                <thead>
                <tr>
                    <th width="50">#</th>
                    <th>车牌号</th>
                    <th>订单笔数</th>
                    <th>订单费用</th>
                    <th>定金</th>
                    <th>已付款</th>
                    <th>优惠金额</th>
                    <th>待付款</th>
                </tr>
                </thead>
                <tbody>
                {volist name="list" id="vo"}
                <tr>
                    <td>{$vo.aid}</td>
                    <td>{$vo.car_sn}</td>
                    <td>{$vo.count}</td>
                    <td>{$vo.sum_order_charge}</td>
                    <td>{$vo.sum_order_advance}</td>
                    <td>{$vo.sum_order_pay}</td>
                    <td>{$vo.sum_discount_money}</td>
                    <td>{$vo.sum_order_q}</td>
                </tr>
                {/volist}
                </tbody>
            </table>

            <div class="clearfix"></div>
        </div>
    </div>
</div>
{/block}
{block name="script"}
<script>
    $(function () {
        $('[data-toggle="tooltip"]').tooltip()
    });
    In('laydate',function () {
        laydate.render({
            elem: '#rangdate',
            range: '~'
        });
    })
</script>
{/block}